package {
    import laya.display.Sprite;
    import ui.GameBGUI;

    public class GameMap extends GameBGUI {

        public function GameMap() {

        }

        public function updateMap():void {
            this.y += 1;

            if (this.bg1.y + this.y >= 1280) {
                this.bg1.y -= 1280 * 2;
            }

            if (this.bg2.y + this.y >= 1280) {
                this.bg2.y -= 1280 * 2;
            }
        }

    }
}